<div class="form-wizard">
<div class="tab-content no-margin">
<div class="tab-pane with-bg active" >
    <div class="panel-body">
        <form class="form-horizontal">
            <div class="form-group" >
                <label class="col-sm-2 control-label text-right" for="field-1">环境名 <span class="required_text">*</span></label>
                <div class="col-sm-7">
                    <input type="text" ng-model="sub.ServiceName" placeholder="输入环境名称" class="form-control">
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="form-group-separator"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">请填写环境变量</label>
                <div class="col-sm-10">
                    <div class="form-inline service_dk">
                        <table>
                            <thead class="table_title">
                            <tr>
                                <th>变量名称</th>
                                <th>变量值</th>

                            </tr>
                            </thead>
                            <tbody class="service_dk">
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <input type="text" placeholder="变量名称" size="25" class="form-control" ng-model="curEnvInfo.name">
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group ">
                                        <input type="text" placeholder="变量值" size="37" class="form-control gz_width" ng-model="curEnvInfo.value">
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <button class="btn btn-secondary btn-single" ng-click="add(curEnvInfo)"><i class="fa-plus"></i> 添加</button>
                                    </div>
                                </td>
                            </tr>
                            <tr  ng-repeat="envInfo in envInfos">
                                <td>
                                    <div class="form-group ">
                                        <input type="text" placeholder="变量名称" size="25" class="form-control" ng-disabled="true" ng-model="envInfo.name">
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group ">
                                        <input type="text" placeholder="变量值" size="41" class="form-control gz_width_1" ng-model="envInfo.value">
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <button style="margin-top:10px;" type="button" class="btn btn-white " ng-click="deleteEnv($index)"><i class="fa-close  text-red"></i></button>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <button  type="button" class="btn btn-info" ng-click="submit(envInfos)">提交</button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </form>
    </div>
</div>
</div>
</div>